#文字列パターンマッチング
#N.SUN 2022/11/24
#coding:utf-8

txt = input("文章を入れて:")
pattern = input("探すパターンを入れて: ")

#4種類の文字列検索モジュール
ans1 = txt.find(pattern)   #txtの左から検索
ans2 = txt.rfind(pattern)  #txtの右から検索
ans3 = txt.index(pattern)
ans4 = txt.rindex(pattern)

ans = ans1

if ans == -1:
    print("見つからなかった!")
else:
    print(pattern + "見つかりました。" + txt + "の" + str(ans) + "番目にある。")